package high.concurrent.pay.service;

import com.alibaba.fastjson.JSONObject;
import high.concurrent.vo.PayInfoVO;
import org.apache.http.client.methods.CloseableHttpResponse;

import java.io.IOException;

public interface PayService {

    /**
     * 创建订单
     * @param payInfoVO
     * @return
     */
    CloseableHttpResponse createOrder(PayInfoVO payInfoVO);

    /**
     * 查询订单状态
     * @param payInfoVO
     */
    CloseableHttpResponse selectOrderStatus(PayInfoVO payInfoVO);

    /**
     * 订单关闭
     * @return
     */
    CloseableHttpResponse closeOrder(PayInfoVO payInfoVO);

    /**
     * 订单退款
     * @return
     */
    CloseableHttpResponse refundOrder(PayInfoVO payInfoVO);

    /**
     * 退款状态查询
     * @param payInfoVO
     * @return
     */
    CloseableHttpResponse selectRefundOrderStatus(PayInfoVO payInfoVO);
}
